Unified system area network and switch

ABSTRACT

A network switch, based on the PCI Express protocol, is disclosed. The switch includes a processor, local memory and a plurality of non-transparent bridges. By configuring the non-transparent bridges appropriately, the network switch can facilitate a number of different communication mechanisms, including TCP/IP communication between servers, server clusters, and virtualized I/O device utilization. For example, the network switch may configure the non-transparent bridges so as to have access to the physical memory of every server attached to it. It can then move data from the memory of any server to the memory of any other server. In another embodiment, the network switch is connected to an I/O device, and multiple servers are given access to that I/O device via virtualized connections.

This application is a divisional of U.S. patent application Ser. No. 13/091,749 filed Apr. 21, 2011, which is a continuation-in-part of U.S. patent application Ser. No. 12/613,207, filed Nov. 5, 2009 (now U.S. Pat. No. 8,359,401 issued Jan. 22, 2013), the disclosures of which are incorporated herein by reference in its entirety.

BACKGROUND OF THE INVENTION

Over time, various interconnects and protocols have been developed to address the various interconnectivity issues associated with computing. Several examples of interconnectivity include server-based clustering, storage networks, intranet networks, and many others.

Today, it is common for a single installation to have a plurality of interconnects for these various interconnectivity solutions. For example, FIG. 1 shows a typical environment where a plurality of servers 10 a, 10 b, 10 c are connected to each other via high speed Ethernet, such as through a switch 20. This switch 20 allows the various servers to exchange data with each other. This switch 20 may also connect to a second switch or gateway 30, which provides a second interface, such as FibreChannel to the storage devices 40 a, 40 b.

In another embodiment, such as that shown in FIG. 2, a cluster switch 50 is used to connect a plurality of servers, such as mail server 60 a, application server 60 b and data base server 60 c together.

FIG. 3 shows a typical computer architecture, showing the interconnect between two servers, such as servers 10 a, 10 b of FIG. 1. In this embodiment, there is an Ethernet controller 70 a, 70 b, in each server 10 a, 10 b, These controllers 70 a, 70 b each communicate with the switch 20. In many instances, the Ethernet controllers use a PCI, or PCI Express interface to connect to the motherboard 80 a, 80 b of the respective server 10 a, 10 b.

Therefore, in operation, the CPU on the server 10 a generates a message that it wishes to send to another node, such as server 10 b. It creates the data payload, or application layer payload. In many embodiments, TCP/IP is used as the transport protocol. Therefore, the message body is encapsulated with TCP overhead and IP overhead. If the Ethernet controller 70 a utilizes PCI Express interface, a PCI Express link packet of the datalink layer will be appended at the physical layer prior to its transmission to Ethernet controller 70 a. FIG. 4 shows a typical PCI Express path carrying TCP/IP packets, with each of these components.

Once the Ethernet controller 70 a receives the packet from the server 10 a, it must strip off the PCI Express overhead information. The Ethernet controller driver parses the data stream to retrieve the destination IP address. It then associates an Ethernet ID of the destination IP address and appends that to the Ethernet frame. It then appends traditional Ethernet overhead. FIG. 5 shows the format of a typical Ethernet format packet. The controller 70 a then transmits the packet to switch 20.

At the switch 20, the Ethernet overhead is stripped off, and the switch 20 determines through which port the packet should be transmitted, based on the destination address. The switch then creates a new Ethernet overhead that is appended to the packet, and it is transmitted to server 10 b.

Server 10 b receives the packet, strips off the Ethernet overhead. It then embeds the data payload in PCI Express datalink and via PCI Express physical layer, prepares to send the data to the CPU on server 10 b. Once the data reaches the motherboard 80 b, the data payload is extracted from the PCI Express datalink from the physical layers and the packet is stored in memory as a TCP/IP packet, where the CPU can parse it and act upon it.

Looking at FIG. 3, it can be seen that, in theory, there is a virtual connection between the PCI Express physical layers of the two servers 10 a, 10 b. In other words, all of the other components are simply necessary to add and remove overhead information to allow the packet to move from the PCI Express port on the motherboard of server 10 a to the PCI Express port on the motherboard of server 10 b.

Similar architectures exist for other interconnect strategies, where the packet is translated from PCI Express to another protocol to allow transmission from the network adapter to another device. The second device then removes the overhead associated with the other protocol and generates a PCI Express format message for transfer to the CPU of the device.

Therefore, it would be beneficial if there were a method and system that could transmit information between multiple devices without the need to utilize multiple formats and interconnects for these transmissions.

SUMMARY OF THE INVENTION

A network switch, based on the PCI Express protocol, is disclosed. The switch includes a processor, local memory and a plurality of non-transparent bridges and, optionally transparent bridges leading to PCI Express endpoints. By configuring the non-transparent bridges appropriately, the network switch can facilitate a number of different communication mechanisms, including TCP/IP communication between servers, server clusters, and virtualized I/O device utilization. For example, the network switch may configure the non-transparent bridges so as to have access to the physical memory of every server attached to it. It can then move data from the memory of any server to the memory of any other server. In another embodiment, the network switch is connected to an I/O device, and multiple servers are given access to that I/O device via virtualized connections.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a first computer architecture of the prior art;

FIG. 2 is a second computer architecture of the prior art;

FIG. 3 is a diagram shows the software and hardware interactions in a data transmission in the architecture of FIG. 1;

FIG. 4 is a packet showing the PCI Express format;

FIG. 5 is a packet showing the Ethernet format;

FIG. 6 is a schematic view of the network switch of the present invention;

FIG. 7 shows the connection between two servers and the network switch of FIG. 6;

FIG. 8 shows the use of an extension switch to expand the connectivity of the network switch of FIG. 6;

FIG. 9 shows a representative logical address map for the network switch of FIG. 6;

FIG. 10 shows the memory spaces for two clustered servers and the network switch according to one embodiment;

FIG. 11 shows the memory spaces for two clustered servers and the network switch according to a second embodiment;

FIG. 12 shows the I/O space for two servers accessing a I/O device attached to a network switch; and

FIG. 13 shows a schematic view of a network switch with attached I/O devices and attached servers.

DETAILED DESCRIPTION OF THE INVENTION

Usually, as described above, in a networked environment, there are various higher-level protocols used by the respective applications to communicate between computers and devices. For example, the TCP/IP protocol is used extensively in current intranet and internet infrastructure.

These various higher-level protocols are often transmitted over a variety of different interconnects, such as Ethernet, FibreChannel, ATM, or proprietary interfaces. To utilize multiple interfaces, it is often necessary to utilize network adapters, which convert one protocol and interface to a second set. When these adapters are incorporated in a computer, they often communicate with the processor using an interface and protocol known as PCI Express. For example, an Ethernet network adapter may be installed in a server, whereby it communicates with the server root complex using PCI Express as the transmission interface. It then sends packets to other devices, after having properly converted those packets to a suitable Ethernet format. Similarly, upon receipt of an Ethernet packet, the adapter removes the Ethernet overhead and constructs a PCI Express packet which can be delivered to the root complex of the server. The various packet formats are shown in FIGS. 4 and 5.

A new network switch utilizing PCI Express as the interconnection between servers, storage devices and other networked devices is disclosed. This switch relies on the robust layered packetized protocols implicit in the specification of the PCI Express interconnect mechanism to ensure data integrity. This technology is highly scalable and with PCI Express 2.0, can achieve communication bandwidth of 80 Gigabits/sec (Gb/s), which translates to about 8 Gigabytes/sec (8 GB/s). Future enhancements of PCI Express will increase that throughput to 16 GB/s.

One mechanism that has been used with PCI and PCI Express for a number of years is known as non-transparent bridging. A transparent bridge is a device in which the server, located on one side of the bridge is able to enumerate and communicate with devices on the other side of the bridge. In contrast, a non-transparent bridge does not allow that server to enumerate or communicate with devices on the other side of the non-transparent bridge (NTB). Instead, the NTB acts as an endpoint, which maps a section of memory (or I/O) on one side with a section of memory (or I/O) on the other side. The NTB performs address translation such that the sections of memory on the two sides of the bridge do not need to have the same addresses. Within the configuration space of the NTB are registers defined for message passing between the two sides. In addition, Doorbell Registers can be used to allow the devices on either side of the NTB to generate PCI Express in-band messaging interrupts to one another.

The concept of non-transparent bridging can be used to allow a new network switch, which utilizes PCI Express to perform a multitude of network operations, including TCP/IP communications, clustering, and shared I/O. Each of these operations will be explained in more detail below.

Referring to FIG. 6, the network switch 100 comprises a central root complex processor (RCP) 110, having a CPU 111, a root complex 112, and a memory element 113. The RCP 110 also communicates with a PCI Express switch 120, which has a plurality of outputs, allowing attachment to a multitude of devices, such as PCI Express endpoints, 130 a, 130 b, and non-transparent bridges 140 a, 140 b. The non-transparent bridges 140 a, 140 b also have a second interface, which may be connected to a connector 145 a, 145 b or cable for attachment to another device. The second interface of the non-transparent bridge and/or the connector to which it is connected may also be referred to as a port in this disclosure.

FIG. 7 shows the network switch 100 being attached to two servers 150 a, 150 b, each via a respective non-transparent bridge 140 a, 140 b. Server 150 a has a root complex processor 155, made up of a CPU 151, a root complex 152, memory 153. A PCI Express switch 154 connects the root complex 155 to a plurality of PCI Express devices. One such device may be a transparent bridge 157, which is attached via a cable to non-transparent bridge 140 a of network switch 100. It is noted that while a transparent bridge 157 are shown in the path between PCI Express switch 154 and the non-transparent bridge 140 a, this is not required. In other words, the PCI Express switch 154 may have an output, such as a PCI Express End Point, that attaches directly to non-transparent bridge 140 a. Server 150 b has a corresponding architecture and may be attached to non-transparent bridge 140 b of network switch 100 via a transparent bridge 167.

While FIG. 7 shows two servers 150 a, 150 b, it is understood that the present disclosure is not limited to this number. In fact, any number of servers 150 and other devices may be connected to a network switch 100 via an equal number of dedicated non-transparent bridges (140).

In fact, the network switch can be connected together with one or more extension switches 190 to create a “virtual” network switch having many more ports. FIG. 8 shows a network switch 100 and a server 150 a. In addition, an extension switch 190 is shown. Network switch 100 and extension switch 190 are preferably attached via bridges 143, 187, such that the root complex 112 of the network switch 100 has access to all of the address space within the extension switch 190. The extension switch 190 is simply used to expand the connectivity of the network switch 100. As such, it consists of a plurality of non-transparent bridges 186 which can be attached to additional servers, such as server 150 b. The root complex 112 is responsible for configuration of all of the non-transparent bridges 186 within the extension switch 190. The root complex 112 is also responsible for enumerating all devices attached to the transparent bridge within this virtual network switch. Thus, the root complex 112 assigns each server attached to the network switch 100 or any attached extension switch 190 a logical address range in its 64-bit address space. FIG. 8 shows that servers may be attached to either the network switch 100 or the extension switch 190. In addition, additional extension switches may be used. These extension switches can be daisy-chained from the previous extension switch 190 via a-bridge, or can attach to the network switch 100 via a transparent bridge.

Referring to FIG. 7, at startup, the CPU 111 of the network switch 100 configures the base address register (BAR) in the configuration space of the NTB 140 a to map the entire system memory 153 of Server 150 a to a memory segment within the 64-bit logical address space of the RCP 110 of the network switch 100. In other words, the RCP 110 of the network switch 100 has the ability to access all of the physical memory 153 located within server 150 a. In other embodiments, the configuration space in the NTB 140 a may be configured to only be able to access a portion of the physical memory 153 within the server 150 a. Similarly, the CPU 111 of the network switch 100 configures the base address register (BAR) in the configuration space of NTB 140 b to map the entire system memory 163 of Server 150 b to a second memory segment within the logical address of the RCP 110. This configuration step repeats for each server connected to a NTB 140 of the network switch 100.

In this way, the RCP 110 of the network switch 100 potentially has access to all of the physical memories 153,163 of each of the servers 150 to which it is attached. This enables the network switch 100 to facilitate the transfer of data from any server 140 to any other server very efficiently. FIG. 9 shows a representative logical address space for the CPU 111 of network switch 100. Note that the memory of each server 150 is mapped into the address space of the network switch 100. In FIG. 9, the address shown for memory space 113 is that of the physical memory of network switch, which is part of the 64-bit logical address space of the network switch.

At configuration or boot time, the RCP 110 of the network switch 100 may emulate a DHCP device, whereby it assigns IP addresses to every server 150 attached to the network switch 100. This may be accomplished by using the Messaging Registers and Doorbell Registers inherent in the NTB 140. As the RCP 110 assigns network addresses, it creates a table storing the IP address of each device and its associated port or NTB 140.

In another embodiment, the RCP 110 does not assign IP addresses to the servers attached to it. Rather, it uses the Messaging Registers and Doorbell Register to interrogate each device as to its previously assigned IP address. As was done above, the RCP 110 then builds a table storing IP addresses and associated ports or NTBs for each attached device.

Referring to FIG. 7, in operation, the CPU 151 of server 150 a creates a TCP/IP datagram or message and writes the data into the system memory 153. The TCP/IP datagram or message is then transmitted to the destination server and written into its system memory 163. This operation can be performed in a variety of ways. For example, the network switch 100 may utilize its processor 111 to copy the data from one memory 153 to the other memory 163. This is done by allowing the processor 111 to access the memory 153 using the logical address space that has been previously configured, as shown in FIG. 9. The processor then moves this data to the second server 150 b, by writing the data using the logical address space that has been configured for memory 163. In other embodiments, the network switch 100 also comprises a direct memory access (DMA) engine, which can be programmed with a starting address and length, and can automatically read the data through NTB 140 a at a first set of addresses and write the data through NTB 140 b at a second set of addresses. FIG. 9 shows the processor or DMA engine moving data from one address space to the other in order to transfer the data between the servers. In either scenario, the data is moved to the memory 163 of server 150 b. Note that in either case, the data is never stored on the network switch 100. Rather, the network switch 100 serves only as a conduit to move the data from its source to the desired destination.

To implement either of these embodiments, the RCP 111 of the network switch accesses the TCP/IP datagram or message using the NTB 140 a. The RCP 111 can parse the message to determine the destination IP address of the message. The RCP 111 then accesses its internal lookup table to determine which port is associated with this IP address. The RCP 111 then simply copies the data from the memory 153 to the memory 163 of the destination server 153 b using either of the techniques described above. The server 150 b can then process the received packet.

There are a number of embodiments that can be used to communicate the location of buffers that need to be transmitted from server 150 a. Similarly, there are a number of embodiments that can be used to communicate the location of the buffers in the destination server 150 b where incoming packets should be stored.

In one embodiment, each server has a transmit list, which includes a pointer to each packet that needs to be transmitted. In some embodiments, this list may be a ring, although this is not required. Other embodiments include a linked list or a double-linked list. In some embodiments, the transmit list contain pointers to the buffers to be transmitted and does not contain the actually data to be sent.

As new datagrams or packets are created and readied for transmission, the transmitting server 150 a updates the tail of the transmit list with the address of the new packet in memory 153. This action is made aware to the network switch 100, such as via Doorbell Registers or Messaging Registers in the non-transparent bridge 140 a. When the network switch 100 transmits a packet to the destination server 150 b, it updates the head of the transmit list to the next item. In this way, the transmitting server 150 a and the network switch 100 cooperate to populate and remove entries from the transmit list. When the head of the transmit list is equal to the tail of the transmit list, the network switch 100 knows that there are no packets ready for transmission.

In some embodiments, the transmit list is located in the server 150 a. In some embodiments, the parameters representing the head of the transmit list and the tail of the transmit list are stored on both the transmitting server and the network switch using shadow copies to minimize costly remote read operations.

Furthermore, in some embodiments, the transmitting server maintains a transmit list for each possible destination server. This minimizes head of line blocking that may result from a busy server. In other embodiments, a single transmit list is used for all possible destinations.

The receiving operation is performed in a similar way. The receive list may be organized as a ring, a linked list, or a double-linked list. The receive list may have a head, a tail and a free pointer. The head of the receive list is the next packet which has already been moved by the network switch 100 and must be processed by the receiving server 150 b. This value is updated by the receiving server. The tail of the receive list is the last packet on the list, and is updated by the network switch 100. The free pointer is a pointer to the location in the receiving server's memory to where the network switch 100 should transfer the next incoming datagram or packet. This pointer is created and updated by the receiving server 150 b. When the head and tail are equal, the receive list is empty.

When the network switch 100 moves a packet to a receiving server 150 b, it updates the head of the receive list, and notifies the receiving server 150 b that a packet has been transmitted, such as via the Doorbell and Messaging Registers in the non-transparent bridge 140 b. In another embodiment, the servers 150 and the network switch 100 all are connected via a standard network connection, such as Ethernet. In this embodiment, the notification between the servers 150 and the network switch 100 take place using the network connection.

The above embodiments utilize the root complex 112 of the network switch 100 to move data from one server 150 a to another server 150 b. However, in some embodiments, the CPU 151 of server 150 a may be used to push the TCP/IP datagram or message to the server 150 b. In a first embodiment, the network switch 100 assigned a specific portion of its memory 113 to each server 150. This is done by configuring the non-transparent bridges 140 attached to each server with a physical address range in its system memory 113. In this embodiment, the server 150 a, rather than creating the datagram in its own memory, actually creates the message in a portion of the system memory 113 in the network switch 100.

Once the datagram is assembled in the system memory 113, the root complex 110 can determine the destination IP address as described above. In one embodiment, it then copies the message directly to the memory in the destination server. In another embodiment, it moves the datagram to another portion of its own memory 113 which is associated with the destination server and alerts the destination server of its presence. The destination server can then read the message using the address range assigned to its non-transparent bridge. In either scenario, the processor 111 moves data from one section of its own memory to another section of memory.

In yet another embodiment, a combination of these approaches is used, whereby the network switch 100 acts as the data mover in certain transactions, while the servers 150 utilizes the system memory of the network switch 100 for other operations.

In another embodiment, the network switch 100 is made aware of the destination server of a datagram that the transmitting server wants to communicate with. This can be done using the Messaging and Doorbell registers in the NTB 140 a. In other embodiments, the network switch 100 can snoop the data in the transmitting server's memory and determine the destination server based on the IP address. In other embodiments, the network switch 100 becomes aware via a message from the transmitting server that is delivered via an Ethernet connection. The network switch 100 can then modify the Base Address Registers in the non-transparent bridges 140 to allow the write cycles from the transmitting server to be captured by the NTB associated with the destination server. In this way, the transmitting server actually writes directly to the destination server's memory.

The network switch 100 can also be used to cluster servers together. In many instances, especially in the area of supercomputing, servers and computers need to transfer data amongst themselves at wire speeds. In such instances, these systems cannot allow for any processing overhead associated with higher-level communication protocols. In these scenarios, the servers communicate with each other in point-to-point fashion without necessarily being part of a network. Often times, this point-to-point interconnect is of a proprietary nature, unique to that particular system vendor.

There are several methods by which the network switch 100 can facilitate server-to-server communications. In one embodiment, the network switch 100 serves to moves data between the memories of two servers, in much the same way as described above for TCP/IP transmissions. At configuration or boot time, the network switch 100 sets up the base address registers (BAR) in the various non-transparent bridges 140, such that each occupies a different address space within the 64-bit logical address space. This, as was done above, allows the network switch 100 to view memories 153, 163, or at least a portion of those memories. FIG. 10 shows the logical address space for the network switch 100, and the corresponding physical address spaces for servers 150 a, 150 b.

In one embodiment, the network switch 100 then uses the Messaging Registers or Doorbell Registers of the non-transparent bridges 140 a, 140 b to communicate with the servers 150 a, 150 b. In another embodiment, the servers 150 and the network switch 100 all are connected via a standard network connection, such as Ethernet. In this embodiment, the communication between the servers 150 and the network switch 100 take place using the network connection. In this way, the network switch can determine the identifier information for each server in the cluster. As was performed above, the network switch 100 stores this information in a lookup table that associates server identifier information with a non-transparent bridge or port. The network switch 100 then moves the data from one server to another, using essentially the same technique as described above. As shown in FIG. 10, the processor 111 or a DMA engine in the network switch 100 may be used to copy the data from the cluster space of server 1 to the cluster space of server 2. In other words, the transfer of data in Cluster mode may be performed by the Network Switch RCP 110 either in PIO mode or using a DMA engine associated with the NTB port, operating under the control of the Network Switch RCP 110. Therefore, the Network Switch 100 can copy data from any server's memory 153 to another server's memory 163 in PIO mode where each server's cluster space is mapped into various memory windows of the logical address space of the Network Switch RCP 110. In another embodiment, the DMA engines that are associated with each NTB port are utilized so that there can be simultaneous transfers of data from server to server occurring with arbitration taking place in the PCIe Switch 120 or extension Switch 190 attached to all of the NTB ports.

In the case of a two server cluster, a lookup table may not be necessary, as it is clear what the destination of all communications is. However, in the case of clusters having three or more servers, the network switch 100 may use the identifier information to determine the destination server for a particular communications. In yet another embodiment, each server may set up multiple address spaces, where each is associated with a particular clustered server.

In another embodiment, the network switch 100 facilitates the creation of a cluster tunnel between two servers. In this embodiment, the CPU 111 of the network switch 100 configures the BAR of the non-transparent bridges 140 a, 140 b to such that server 150 a can write and read directly from memory in server 150 b. This is achieved by mapping the cluster space of both servers to the same logical address range. At the request of one server, the processor 111 of the network switch 100 can configure the BAR of the two non-transparent bridges to map to the same address. If server 150 a attempts to write data, the translated address in the address space of the network switch 100 will be that of the cluster space of the second server Thus, the second NTB 140 b will capture this write operation and forward it to the second server 150 b. Similarly, reads or writes from the second server 150 b would be captured by the NTB 140 a and passed to the first server 150 a, as shown in FIG. 10. In this embodiment, the network switch 100 is not involved in actual data transfers. However, it may be involved in passing interrupts between the devices, or passing messages between clustered servers. In some instances, these messages, but preferably not data, can be transferred via an Ethernet legacy network connecting the servers).

Although FIG. 11 shows two servers sharing a cluster tunnel, the disclosure is not limited to this embodiment. An arbitrary number of servers can share a single tunnel.

In another embodiment, the network switch 100 configures any number of the non-transparent bridges 140 to access a single portion of its physical memory 113. In this way, each server that is configured in this way can access a common portion of physical memory in the network switch 100. This allows multiple servers to access the same physical memory 113 using the arbitration functionality resident on the PCIe switch 120 on the network switch. One application of this method would be accessing a common memory made up of solid state devices, thereby, providing multiple server access to the same physical memory with arbitration on concurrent accesses performed by the PCIe Switch resident on the Network Switch.

In many instances, it is beneficial for various servers in a datacenter, or other, environment to use the same I/O device for their respective applications. A software technique known as I/O virtualization allows a set of I/O controllers and devices to be shared by a plurality of servers.

This technique allows multiple operating systems operating on the same or different processor platforms to access a single I/O hardware device. These operating systems in this shared I/O access architecture may be referred to as “Guest Operating Systems”.

A specially designed software application virtualizes a set of hardware to the Guest Operating Systems of various servers. In other words, this application, which may be referred to as middleware, makes it appear to each server having a Guest Operating System that it is the exclusive owner of the I/O device whenever it tries to access the I/O device. In other words, there are multiple virtual paths between various servers and the I/O device, however each server is only aware of its own path and does not realize that the I/O device is actually being shared among servers.

To achieve this, the middleware saves the full context of the I/O device, including the state of the I/O hardware registers and other volatile parameters associated with the device as well as the host processor, whenever it switches the path to the I/O device from one server to another. When it is time to switch the path back to the original server, the middleware retrieves the saved context and applies them as required thereby making the transition between server graceful and seamless. The middleware can make use of Messaging and Doorbell Registers to notify other servers of its desire to access an I/O device. In another embodiment, the servers 150 and the network switch 100 all are connected via a standard network connection, such as Ethernet. In this embodiment, the notification between the servers 150 and the network switch 100 may take place using that network connection. The middleware running on each of the other servers will receive this message. Some type of arbitration may be used to determine the next virtual owner of the I/O device. In another embodiment, the middleware of each server requests use of the I/O device from the network switch 100, which contains the arbitration logic and determines the next “owner” of the I/O device. The network switch then relays its decision to the other servers using the Messaging and Doorbell Registers.

This technique is predicated on the need for a reliable electrical connection for dataflow between these servers and the I/O controllers. The present network switch 100 can also be used to provide that electrical connection between a plurality of servers and I/O controllers and devices.

In one embodiment, shown in FIGS. 12 and 13, the network switch 100 configures the non-transparent bridge 140 a base address for I/O address routing registers (BAR) to allow server 150 a to access I/O device 1 and I/O device 2. It similarly configured non-transparent bridge 140 b base address registers (BAR) to allow server 150 b to access I/O device 1 and I/O device 2. The I/O space used by the two servers 150 a, 150 b to represent the actual I/O devices need not be the same. One example of this is shown in FIG. 12. In this embodiment, server 150 a and server 150 b have allocated a portion of their I/O space to the devices such that the I/O devices occupy different spaces in their respective physical address maps. However, through the translations performed by the network switch 100, both servers 150 a, 150 b are able to access the same I/O space in the network switch 100.

The I/O devices are enumerated by the network switch RCP 111. The Network Switch 100 also builds a unique ID Translation Look Up Table (LUT) per NTB port connected to individual servers. In this way, the controlling server will recognize the ID of the I/O device it is engaged with at any given point in time. The building of the LUT is carried out at boot or configuration time using communication through message and doorbell registers or through an Ethernet connection between servers and the network switch.

FIG. 13 shows one embodiment of the interconnections between the servers 150 a, 150 b, the network switch 100 and an I/O device 300. As was described above, the network switch 100 is attached to the servers 150 a, 150 b through use of non-transparent bridges 140 a, 140 b. An I/O Device 300 is attached to the network switch 100 through a transparent bridge 143, such that it is discovered and enumerated by the network switch 100 during initialization. After that time, when server 150 a wishes to access the I/O device 300, it accesses the I/O space configured in the non-transparent bridge 140 a. This access is then received by the I/O device 300, as this is its I/O address range. Similarly, server 150 b accesses the I/O Device 300 using the I/O space configured in non-transparent bridge 140 b. In this way, the root complex of the network switch 100 is not involved in I/O transactions to the I/O device 300.

The present disclosure is not to be limited in scope by the specific embodiments described herein. Indeed, other various embodiments of and modifications to the present disclosure, in addition to those described herein, will be apparent to those of ordinary skill in the art from the foregoing description and accompanying drawings. Thus, such other embodiments and modifications are intended to fall within the scope of the present disclosure. Further, although the present disclosure has been described herein in the context of a particular implementation in a particular environment for a particular purpose, those of ordinary skill in the art will recognize that its usefulness is not limited thereto and that the present disclosure may be beneficially implemented in any number of environments for any number of purposes. 

What is claimed is:
 1. A method of clustering two servers, each server having a local memory and processor, comprising: connecting each of said two servers to a switch using PCI Express, said switch comprising a processor, a local memory and a plurality of non-transparent bridges, a first of said non-transparent bridges used to connect to a first server and a second of said non-transparent bridges used to connect to a second server; configuring said first non-transparent bridge so that a first portion of said local memory of said first server is mapped into a logical address space of said processor in said switch; thereby allowing said switch to access said first portion of said local memory of said first server; configuring said second non-transparent bridge so that a second portion of said local memory of said second server is mapped into said logical address space of said processor in said switch; thereby allowing to allow said switch to access said second portion of local memory of said second server; using said first server to write data destined for said second server to said first portion; using said network switch to copy data from said first portion using said first non-transparent bridge to said second portion using said second non-transparent bridge; and using said second server to read data from said second portion.
 2. The method of claim 1, wherein a direct memory access (DMA) engine located in said network switch is used to read said data from said first portion and copy said data to said second portion.
 3. The method of claim 1, wherein said first non-transparent bridge comprises a messaging register to allow communication between said processor of said first server and a processor in said network switch, and said processor of said first server notifies said network switch of the existence of said data in said first portion using said messaging register.
 4. The method of claim 1, wherein said second non-transparent bridge comprises a messaging register to allow communication between said processor of said second server and a processor in said network switch, and said network switch notifies said second server of the existence of said data in said second portion using said messaging register.
 5. The method of claim 1, wherein said first server, said second server and said network switch are attached via a network connection and said processor of said first server notifies said network switch of the existence of said data in said first portion using said network connection.
 6. The method of claim 1, wherein said first server, said second server and said network switch are attached via a network connection and said processor of said network switch notifies said second server of the existence of said data in said second portion using said network connection.
 7. A system for clustering two servers, comprising: a first server having a first local memory, a first processor and a first PCI Express port, A second server having a second local memory, a second processor and a second PCI Express port; network switch comprising a third processor, a third local memory, a first non-transparent bridge connected to said first PCI Express port, and a second non-transparent bridge connected to said second PCI express port, wherein said third local memory further comprises computer executable instructions adapted to: configure said first non-transparent bridge so that a first portion of said local memory of said first server is mapped into a logical address space of said processor in said switch; thereby allowing said network switch to access said first portion of said first local memory; configure said second non-transparent bridge so that a second portion of said local memory of said second server is mapped into a logical address space of said processor in said switch; thereby allowing said network switch to access said second portion of said second local memory; receive a notification from said first server of new data written in said first portion; copy data from said first portion to said second portion using said first and second non-transparent bridges, in response to said notification; and notify said second server that new data is available in said second portion after copying said data to said second portion.
 8. The system of claim 7, further comprising a DMA engine in said network switch to copy said data from said first portion to said second portion.
 9. The system of claim 7, wherein said non-transparent bridges each comprise a messaging register, and said notifications are transmitted using said messaging register.
 10. The system of claim 7, wherein said first server, said second server and said network switch are attached via a network connection and said notifications are transmitted using said network connection.
 11. A method of clustering two servers, each server having a local memory and processor, comprising: connecting each of said two servers to a switch using PCI Express, said switch comprising a plurality of non-transparent bridges, a first of said non-transparent bridges used to connect to a first server and a second of said non-transparent bridges used to connect to a second server; configuring said first non-transparent bridge such that accesses from said first server and accesses from said second server utilize the same logical address range in said switch, such that read and write operations from said first server via said first non-transparent bridge are claimed by said second non-transparent bridge and read and write operations from said second server via said second non-transparent bridge are claimed by said first non-transparent bridge; using said first server to perform read and write operations, whereby said operations are performed on said local memory of said second server; and using said second server to perform read and write operations, whereby said operations are performed on said local memory of said first server.
 12. A system for clustering two servers, comprising: a first server having a first local memory, a first processor and a first PCI Express port, A second server having a second local memory, a second processor and a second PCI Express port; network switch comprising a third processor, a third local memory, a first non-transparent bridge connected to said first PCI Express port, and a second non-transparent bridge connected to said second PCI express port, wherein said third local memory further comprises computer executable instructions configured to: configure said first non-transparent bridge such that accesses from said first server and accesses from said second server utilize the same logical address range in said switch, such that read and write operations from said first server via said first non-transparent bridge are claimed by said second non-transparent bridge and read and write operations from said second server via said second non-transparent bridge are claimed by said first non-transparent bridge. 